package com.yanyuhao;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
//扫描mapper接口层
//把所有 Mapper 接口放在统一的包下，比如：com.example.mapper
//在 Spring Boot 启动类上添加 @MapperScan("com.example.mapper")
//不用给每个 Mapper 接口都加 @Mapper 注解（省事又规范）

@MapperScan("com.yanyuhao.mapper")
public class SpringbootApplication {

    public static void main(String[] args) {

        SpringApplication.run(SpringbootApplication.class, args);
    }

}
